package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 公司手续费率表
 * </p>
 *
 * @author Dell
 * @since 2021-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CompanyFeeRate对象", description = "公司手续费率表")
public class CompanyFeeRate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公司ID")
    private Long companyId;

    @ApiModelProperty(value = "司机可得分成比（按照/1000获取百分比）")
    private Integer driverEarningRatio;

    @ApiModelProperty(value = "公司可得分成比（按照/1000获取百分比）")
    private Integer companyEarningRatio;

    @ApiModelProperty(value = "最高收取的手续费(单位为分)")
    @TableField(insertStrategy=FieldStrategy.IGNORED)
    private Integer maxFee;

    @ApiModelProperty(value = "开始时间")
    private Integer startTimestamp;

    @ApiModelProperty(value = "结束时间")
    private Integer endTimestamp;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

}
